﻿<%@ Page Title="" Language="C#" MasterPageFile="~/StarSecurityServices.Master" AutoEventWireup="true" CodeBehind="frmCustomer.aspx.cs" Inherits="eProject_SEM3_SecurityServices.WebForm6" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">

        .style4
        {
            text-decoration: underline;
        }
        .style11
        {
            width: 16px;
        }
        .style12
        {
            height: 14px;
            width: 16px;
        }
        .style8
        {
            height: 14px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="Panel1" runat="server" GroupingText="New Customer">
        <table style="width:50%;">
            <tr>
                <td class="style4" colspan="2" width="50%">
                    <em>Customer Information</em></td>
            </tr>
            <tr>
                <td class="style11">
                    Name</td>
                <td width="145px">
                    <asp:TextBox ID="txtName" runat="server" Width="90%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style11">
                    Phone</td>
                <td width="145px">
                    <asp:TextBox ID="txtPhone" runat="server" Width="90%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style12">
                    Address</td>
                <td class="style8" width="145px">
                    <asp:TextBox ID="txtAddress" runat="server" Width="90%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style12">
                    <asp:Button ID="Button1" runat="server" Text="Add New Customer" 
                        onclick="Button1_Click" />
                </td>
                <td class="style8" width="145px">
                    <asp:Button ID="Button2" runat="server" Text="Cancel" />
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:Panel ID="Panel2" runat="server" GroupingText="Customer Information">
        <asp:GridView ID="GridView1" runat="server" 
    AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" 
            Width="100%" onrowcommand="GridView1_RowCommand">
            <AlternatingRowStyle BackColor="White" />
            <Columns>
                <asp:BoundField HeaderText="Customer ID" DataField="customerId" />
                <asp:BoundField HeaderText="Customer Name" DataField="customerName" />
                <asp:BoundField HeaderText="Customer Phone" DataField="customerPhone" />
                <asp:BoundField HeaderText="Customer Address" DataField="customerAddress" />
                <asp:TemplateField ShowHeader="False">
                    <ItemTemplate>
                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="false" 
                            CommandName="AddContract" Text="Add Contract" CommandArgument = '<%# DataBinder.Eval(Container, "RowIndex") %>'></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
    </asp:Panel>
</asp:Content>
